<template>
	<view style="width: 700upx;padding: 25upx;">
		<view style="width: 700upx;border-bottom: 1upx solid #eee;padding: 10upx 0;" v-for="(item,index) in logistics_list" :key="index">
			<view style="padding: 10upx 0;font-size: 26upx;line-height: 60upx;">{{item.time}}</view>
			<view style="padding: 10upx 0;font-size: 26upx;line-height: 60upx;">{{item.context}}</view>
		</view>
	</view>
</template>

<script>
	import urlConfig from 'common/config.js';
	export default {
		data() {
			return {
				order_id:'',
				logistics_list:[]
			}
		},
		onLoad(num) {
			this.order_id = num.order_id
			this.order_logistics_api()
		},
		methods: {
			order_logistics_api() {
				var that = this
				uni.request({
					url: urlConfig.Url+'api/order/logistics',
					data:{
						access_token:uni.getStorageSync('access_token'),
						order_id:that.order_id
					},
					method: 'POST',
					header: {
						'content-type': 'application/x-www-form-urlencoded'
					},
					success: (res) => {
						if (res.data.message == 'ok') {
							console.log('res.data.data',res.data.data)
							that.logistics_list = res.data.data
						} else {
							uni.showToast({
								title: res.data.msg,
								duration: 2000,
								icon: 'none'
							});
						}
					}
				});
			},
		}
	}
</script>

<style>

</style>
